package com.example.sugar_demo.service;


import com.example.sugar_demo.bean.KeywordCount;
import com.example.sugar_demo.bean.Exam;
import com.example.sugar_demo.bean.Paper;
import com.example.sugar_demo.bean.Province;
import com.example.sugar_demo.mapper.TradeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.math.BigDecimal;
import java.util.List;


@Service
public class TradeServiceImpl implements TradeService{
    @Autowired
    TradeMapper tradeMapper;
    
    @Override
    public List<Province> province(int date) {
        return tradeMapper.province(date);
    }

    @Override
    public BigDecimal getUserRegister(int date) {
        return tradeMapper.getUserRegister(date);
    }

    @Override
    public List<KeywordCount> keywordCount(int date) {
        return tradeMapper.keywordCount(date);
    }


    @Override
    public List<Exam> exam(int date,int limit) {
        return tradeMapper.exam(date, limit);
    }

    @Override
    public List<Paper> paper(int date,int limit) {
        return tradeMapper.paper(date,limit);
    }


}
